package com.wjt.homestayms.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

// 不知道怎么回事 总是出错。 404

@RestController
@RequestMapping("/fuckyou")
public class RznController {

    //    @GetMapping
    @RequestMapping(value = "/fuckme", method = RequestMethod.GET)
    public HashMap<String, String> index() {
        HashMap<String, String> hashmap = new HashMap<String, String>();
        hashmap.put("姓名", "王二");
        hashmap.put("年龄", "27");
        hashmap.put("工龄", "6");
        return hashmap;
    }

}
